package org.dxy.service;

import org.dxy.entity.Trip;
import java.time.LocalDateTime;
import java.util.List;

// 车次服务接口
public interface TripService {
    Trip addTrip(Trip trip);
    Trip updateTrip(Trip trip);
    void deleteTrip(Long id);
    List<Trip> searchTrips(String departure, String destination, LocalDateTime departureTime);

    Trip getTripById(Long id);
}
